<template>
    <div class="parent">
    <child @newNodeEvent="parantListen"></child>

    </div>
</template>

<script>
    import Child from "./child";
    export default {
        name: "parent",
        components: {Child},
        methods: {
            parantListen(eventValue) {
                console.log('子元素传递来的值',eventValue);
            }
        }
    }
</script>

<style>

</style>
